<?
/**
 * VoiceOne Webservices Declarations
 *   
 * @package voiceone_webservices
 * @subpackage Zap
 */
// ---- Zapata Card ------------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapCard',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'             => array('name'=>'id',      'type'=>'xsd:int'),
        'name'           => array('name'=>'name',    'type'=>'xsd:string'),
        'description'    => array('name'=>'description',    'type'=>'xsd:string'),
        'ports'          => array('name'=>'ports',   'type'=>'xsd:int'),
        'type'           => array('name'=>'type',    'type'=>'xsd:string'),
        'span'           => array('name'=>'span',    'type'=>'xsd:int'),
        'order'          => array('name'=>'order',   'type'=>'xsd:int'),
        'driver'         => array('name'=>'driver',  'type'=>'xsd:string'),
        'active'         => array('name'=>'active',  'type'=>'xsd:int')
    )
);
// ---- Zapata Card[] ----------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapCardArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:ZapCard[]')
    ),
    'tns:ZapCard'
);
// ---- Zapata Port ------------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapPort',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'             => array('name'=>'id',       'type'=>'xsd:int'),
        'port'           => array('name'=>'port',     'type'=>'xsd:int'),
        'type'           => array('name'=>'type',     'type'=>'xsd:string'),
        'device'         => array('name'=>'device',   'type'=>'xsd:string'),
        'span'           => array('name'=>'span',     'type'=>'xsd:int'),
        'timing'         => array('name'=>'timing',   'type'=>'xsd:int'),
        'lbo'            => array('name'=>'lbo',      'type'=>'xsd:int'),
        'framing'        => array('name'=>'framing',  'type'=>'xsd:string'),
        'coding'         => array('name'=>'coding',   'type'=>'xsd:string'),
        'crc4'           => array('name'=>'crc4',     'type'=>'xsd:int'),
        'yellow'         => array('name'=>'yellow',   'type'=>'xsd:int'),
        'order'          => array('name'=>'order',    'type'=>'xsd:int'),
        'card'           => array('name'=>'card',     'type'=>'xsd:int'),
        'card_id'        => array('name'=>'card_id',  'type'=>'xsd:int')
    )
);
// ---- Zapata Port[] ----------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapPortArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:ZapPort[]')
    ),
    'tns:ZapPort'
);
// ---- Zapata Port Option -----------------------------------------------------
$server->wsdl->addComplexType(
    'ZapPortOption',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'             => array('name'=>'id',       'type'=>'xsd:int'),
        'type'           => array('name'=>'type',     'type'=>'xsd:string'),
        'device'         => array('name'=>'device',   'type'=>'xsd:string'),
        'timing'         => array('name'=>'timing',   'type'=>'xsd:string'),
        'lbo'            => array('name'=>'lbo',      'type'=>'xsd:string'),
        'framing'        => array('name'=>'framing',  'type'=>'xsd:string'),
        'coding'         => array('name'=>'coding',   'type'=>'xsd:string'),
        'crc4'           => array('name'=>'crc4',     'type'=>'xsd:string'),
        'yellow'         => array('name'=>'yellow',   'type'=>'xsd:string')
    )
);
// ---- Zapata Port Option[] ---------------------------------------------------
$server->wsdl->addComplexType(
    'ZapPortOptionArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:ZapPortOption[]')
    ),
    'tns:ZapPortOption'
);
// ---- Zapata Channel ---------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapChannel',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'             => array('name'=>'id',        'type'=>'xsd:int'),
        'port_id'        => array('name'=>'port_id',   'type'=>'xsd:int'),
        'order'          => array('name'=>'order',     'type'=>'xsd:int'),
        'group'          => array('name'=>'group',     'type'=>'xsd:string'),
        'type'           => array('name'=>'type',      'type'=>'xsd:string'),
        'device'         => array('name'=>'device',    'type'=>'xsd:string'),
        'signalling'     => array('name'=>'signalling','type'=>'xsd:string'),
        'pchannel'       => array('name'=>'pchannel',  'type'=>'xsd:int'),
        'zchannel'       => array('name'=>'zchannel',  'type'=>'xsd:int'),
        'available'      => array('name'=>'available', 'type'=>'xsd:int')
    )
);
// ---- Zapata Channel[] -------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapChannelArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:ZapChannel[]')
    ),
    'tns:ZapChannel'
);
// ---- Zapata Group -----------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapGroup',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'            => array('name'=>'id',            'type'=>'xsd:int'),
        'group'         => array('name'=>'group',         'type'=>'xsd:int'),
        'name'          => array('name'=>'name',          'type'=>'xsd:string'),
        //'rule'          => array('name'=>'rule',          'type'=>'xsd:int'),
        'msns'          => array('name'=>'msns',          'type'=>'tns:stringArray'),
        'type'          => array('name'=>'type',          'type'=>'xsd:string'),
        'did'           => array('name'=>'did',           'type'=>'xsd:int'),
        'signalling'    => array('name'=>'signalling',    'type'=>'xsd:string'),
        'speeddial'     => array('name'=>'speeddial',     'type'=>'xsd:string'),
        'channel_order' => array('name'=>'channel_order', 'type'=>'xsd:int'),
        'port'          => array('name'=>'port',          'type'=>'tns:intArray'),
        'cid'    				=> array('name'=>'cid',    				'type'=>'tns:ChannelCid'),
        'option'        => array('name'=>'option',        'type'=>'tns:AssociativeArray')
    )
);
// ---- Zapata Group[] ---------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapGroupArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:ZapGroup[]')
    ),
    'tns:ZapGroup'
);
// ---- Zapata Tonezone --------------------------------------------------------
$server->wsdl->addComplexType(
    'ZapToneZone',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'             => array('name'=>'id',          'type'=>'xsd:int'),
        'name'           => array('name'=>'name',        'type'=>'xsd:string'),
        'fullname'       => array('name'=>'fullname',    'type'=>'xsd:string'),
        'loadzone'       => array('name'=>'loadzone',    'type'=>'xsd:int'),
        'defaultzone'    => array('name'=>'defaultzone', 'type'=>'xsd:int')
    )
);
// ---- Zapata Tonezone[] -----------------------------------------------------
$server->wsdl->addComplexType(
    'ZapToneZoneArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:ZapToneZone[]')
    ),
    'tns:ZapToneZone'
);
?>